
const BaseDto = require("./base.dto");

module.exports = {
    getAccessToken: {
        client_id: {
            required: true,
            comment: "百度API的Key",
        },
        client_secret: {
            required: true,
            comment: "百度API的密钥",
        }
    },
    picCategory: {
        image: {
            comment: "百度API的Key",
        },
        top_num: {
            comment: "返回分类数量",
        },
        input_type: {
            comment: "判断是否传入url",
        },
        url: {
            comment: "图片链接",
        }
    },
    listDatasets: {
        type: {
            required: true,
            comment: "数据集类型",
        },
        start: {
            comment: "开始的索引",
        },
        num: {
            comment: "数据集的数量",
        }
    },
    createDataset: {
        type: {
            required: true,
            comment: "数据集类型",
        },
        dataset_name: {
            comment: "数据集的名字",
        }
    },
    deleteDataset: {
        type: {
            required: true,
            comment: "数据集类型",
        },
        dataset_id: {
            comment: "数据集的id",
        }
    },
    listCategories: {
        type: {
            required: true,
            comment: "数据集类型",
        },
        dataset_id: {
            comment: "数据集的id",
        },
        start: {
            comment: "开始的索引",
        },
        num: {
            comment: "数据集的数量",
        }
    },
    deleteCategory: {
        type: {
            required: true,
            comment: "数据集类型",
        },
        dataset_id: {
            reuqired: true,
            comment: "数据集的id",
        },
        label_name: {
            require: true,
            comment: "标签名字",
        }
    },
    addData: {
        type: {
            required: true,
            comment: "数据集类型",
        },
        dataset_id: {
            required: true,
            comment: "数据集的id",
        },
        entity_content: {
            required: true,
            comment: "图片base64",
        },
        entity_name: {
            required: true,
            comment: "文件名称",
        }
    }
};

